home *** CD-ROM | disk | FTP | other *** search
/ C++ für Kids / C++ for kids.iso / Buch / Hallo2.cpp < prev    next >
C/C++ Source or Header  |  1998-12-08  |  886b  |  24 lines

  1. //---------------------------------------------------------------------------
  2. #include <vcl\vcl.h>
  3. #pragma hdrstop
  4.  
  5. #include "Hallo2.h"
  6. //---------------------------------------------------------------------------
  7. #pragma resource "*.dfm"
  8. TForm1 *Form1;
  9. //---------------------------------------------------------------------------
  10. __fastcall TForm1::TForm1(TComponent* Owner)
  11.     : TForm(Owner)
  12. {
  13. }
  14. //---------------------------------------------------------------------------
  15. void __fastcall TForm1::Button1Click(TObject *Sender)
  16. {
  17.   Application->MessageBox ("Das freut mich!", "", 4+48);
  18. }
  19. //---------------------------------------------------------------------------
  20. void __fastcall TForm1::Button2Click(TObject *Sender)
  21. {
  22.   Application->MessageBox ("Das tut mir leid!", "", 1+32);
  23. }
  24. //---------------------------------------------------------------------------